arch: arm64: add GDB stub support - #117408
Conversation
|
Hello @chillihunter, and thank you very much for your first Pull Request (PR) to the Zephyr Project! All PRs must pass our Continuous Integration (CI) pipeline before merging. When the pipeline run for your PR completes, you are expected to investigate the results, fix any errors, and update your PR for a fresh round of review. Since this is your first contribution, a project community member must manually approve your CI run (this helps us avoid abuse of our CI system). A bot should assign some reviewers who can start the run for you soon. As a heads-up, you will probably have to update your PR to fix CI issues and address review feedback in order to get it ready for merge. Some key rules for updating your PR are:
Also, see:
If you are stuck or need help, you can join us on Discord and ask questions; many community members try to help new contributors there 😊. Try to pick a Discord channel that is associated with the technical details of your request. If you're not sure, use the #general channel. |
AArch64 previously lacked CONFIG_GDBSTUB / ARCH_HAS_GDBSTUB, so the common debug/gdbstub subsystem could not be used on Cortex-A. Add the architecture bits: register g/G packet layout matching GDB aarch64-tdep, exception entry from BRK and debug exceptions in switch.S (including GPRs not saved in arch_esf), and hardware breakpoints via DBGBVR/DBGBCR because W^X text cannot be patched for software breakpoints. Raise GDBSTUB_BUF_SZ for the larger g-packet. Signed-off-by: Yuan Bian <bianyuan@kylinos.cn>
0982aad to
41a45fe
Compare
AArch64 previously lacked CONFIG_GDBSTUB / ARCH_HAS_GDBSTUB, so the common debug/gdbstub subsystem could not be used on Cortex-A.
Add the architecture bits: register g/G packet layout matching GDB aarch64-tdep, exception entry from BRK and debug exceptions in switch.S (including GPRs not saved in arch_esf), and hardware breakpoints via DBGBVR/DBGBCR because W^X text cannot be patched for software breakpoints. Raise GDBSTUB_BUF_SZ for the larger g-packet.